<script type="text/javascript" src="js/excluir.js"></script>
<h1>Clientes</h1>

<div class="add-link">
	<a href="<?=$this->url(array("module"=>"admin","controller"=>"cliente","action"=>"new"),null,true)?>">Novo Cliente</a>
</div>
<table width="90%" cellpadding="3" cellspacing="0" border="1">
   <tr>
      <td class="titulo">Nome</td>
      <td class="titulo">CNPJ</td>
      <td class="titulo">INSC./RG</td>
      <td class="titulo">Ações</td>
   </tr>
   <?foreach($this->dados AS $key => $cliente):?>
   <tr>
      <td><?=$cliente['rs_nome']?></td>
      <td><?=$cliente['cnpj_cpf']?></td>
      <td><?=$cliente['insc_munic']?></td>
      <td>
		<center>
			<a href="<?=$this->url(array("module"=>"admin","controller"=>"cliente","action"=>"show","id"=>"{$cliente['id_cliente']}"),null,true)?>">
         		<img src="imgs/icons/icon_preview.png" title="Visualizar" border="0" align="middle"/>
         	</a>
         	<a href="<?=$this->url(array("module"=>"admin","controller"=>"cliente","action"=>"edit","id"=>"{$cliente['id_cliente']}"),null,true)?>">
         		<img src="imgs/icons/icon_edit.png"  title="Editar" border="0" align="middle"/>
         	</a>
         	<img src="imgs/icons/icon_delete.png"  title="Deletar" border="0" align="middle" id="excluirCli" rel="<?=$cliente['id_cliente']?>"/>         	
		</center>
      </td>
   </tr>
   <?endforeach;?>
</table>